package com.gthncz;

import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;

public class SimpleDemo {

    public static void main(String[] args){
        /**
         * private static final int DEFAULT_CAPACITY = 10;
         * int newCapacity = oldCapacity + (oldCapacity >> 1);
         */
        ArrayList<Integer> array;

        /**
         * transient Node<K,V>[] table;
         */
        HashMap<Integer, String> map;

        /**
         * 线程安全
         * public synchronized StringBuffer append(String str)
         */
        StringBuffer stringBuffer;

        /**
         * 线程不安全
         * public StringBuilder append(String str)
         */
        StringBuilder stringBuilder;


        /**
         * TODO 看具体实现
         */
        ThreadLocal<String> threadLocal;

        // 排序
        Collections.sort(new ArrayList<Integer>());


        ArrayDeque<Integer> arrayDeque = new ArrayDeque<Integer>();

    }

}
